<!DOCTYPE HTML>
<html>
	<head>
	<meta charset="utf-8">
	<title>搜索结果-{SITE_NAME}</title>
	{if $indexc}
	<meta name="keywords" content="{SITE_KEYWORDS}" />
    <meta name="description" content="{SITE_DESCRIPTION}" />
	{else}
	<meta name="keywords" content="{$meta_keywords}" />
    <meta name="description" content="{$meta_description}" />
	{/if}
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<script type="text/javascript" src="styles/js/jquery.min.js"></script>
	<script type="text/javascript" src="styles/js/swiper.min.js"></script>
	<link rel="stylesheet" href="styles/css/swiper.min.css" />
	<link rel="stylesheet" href="styles/css/style.css" />
	<style type="text/css">
		.page{
			margin:50px auto 140px;
			text-align:center;
		}
		.page ul{
			display:flex;
			align-items:center;
			justify-content:center;
		}
		.page ul li{
			margin:0 5px;
			border:1px solid #ddd;
			background-color:#FFF;
			border-radius:5px;
		}
		.page ul li a{
			padding:8px 15px;
			color:#333;
			display:block;
			border-radius:5px;
		}
		.page ul li.page-active a{
			background-color:#005aba;
			color:#fff;
		}
	</style>
</head>
<body>
	<div class="header">
		<div class="top-box">
			<div class="top-show">
				<div class="left">您好，欢迎来到{SITE_NAME}官网！</div>
				<div class="right">
					<div class="tel">
						<img src="styles/images/tel.jpg" alt="" />
						咨询热线：{dr_block(2)}
					</div>
					<div class="link">
					<a href=""><img src="styles/images/1688.jpg" alt="" /></a>
					</div>
				</div>
			</div>
		</div>
		<div class="center-box">
			<div class="left">
				<a href="/"><img src="{dr_get_file(dr_block(1))}" alt="" /></a>
			</div>
			<div class="right">
				<dl>
					<dt><img src="styles/images/tel2.png" alt="" /></dt>
					<dd>全国咨询热线<h5>{dr_block(2)}</h5></dd>
				</dl>
			</div>
		</div>
		<div class="menu-box">
			<ul>
				<li class="{if $indexc}active{/if}"><a href="/">首页</a></li>
				{list action=category module=share pid=0}
				<li class="{if $catid && in_array($catid, $t.catids)}active{/if}"><a href="{$t.url}">{$t.name}</a>
					{if $t.child}
					<div class="second">
						{list action=category module=share pid=$t.id return=t2}
						<a href="{$t2.url}">{$t2.name}</a>
						{/list}
					</div>
					{/if}
				</li>
				{/list}
				<div class="clear"></div>
			</ul>
		</div>
	</div>
	<div class="wap-header">
		<div class="logo"><a href="/"><img src="{dr_get_file(dr_block(1))}" alt="" /></a></div>
		<div class="menu-btn"><p>&nbsp;</p></div>
		<div class="menu-list">
			<ul>
				<li><a href="/">首页</a></li>
				{list action=category module=share pid=0}
				<li><a href="{$t.url}">{$t.name}</a></li>
				{/list}
			</ul>
		</div>
	</div>
	<div class="banner">
		<div class="swiper-container">
			<div class="swiper-wrapper">
				{php $bi=0;}
				{list action=navigator type=0}
					{php $bi++;}
					<div class="swiper-slide" >
						<img src="{dr_thumb($t.thumb)}" alt="" />
						{php $mbi=0;}
						{list action=navigator type=1 return=t2}
						{php $mbi++;}
						{if $mbi==$bi}
						<img src="{dr_thumb($t2.thumb)}" alt="" />
						{/if}
						{/list}
					</div>
				{/list}
			</div>
			<div class="swiper-pagination"></div>
		</div>
	</div>
	<script>
	var bswiper = new Swiper('.banner .swiper-container', {
		pagination: '.banner .swiper-pagination',
		effect:'slide',
		<!-- mousewheelControl : true, -->
		speed: 1000,
		paginationClickable: true,
		loop: true,
		autoplay:4800,
	});
	$(".banner .swiper-container").mouseenter(function () {//滑过悬停
		bswiper.stopAutoplay();//mySwiper 为上面你swiper实例化的名称
	}).mouseleave(function(){//离开开启
		bswiper.startAutoplay();
	});
	</script>
	{php $typeid=$_REQUEST["typeid"];}
	<div class="search-box">
		<div class="search-show">
			<form method="get" action="{SITE_URL}index.php">	
				<input name="c" type="hidden" value="so">	
				<h5>产品查找</h5>
				<select name="typeid" id="">
					<option value="6">按分类查找</option>
					{list action=category module=share pid=6}
					<option value="{$t.id}" {if $typeid==$t.id}selected{/if}>{$t.name}</option>
					{/list}
				</select>
				<input type="text" name="keyword" class="txt" />
				<input type="submit" class="submit" value="立即搜索" />
			</form>
		</div>
	</div>
	
	<div class="other-box">
	<div class="left">
		<div class="tt">
			搜索结果
		</div>
		<ul>
			{list action=category module=share pid=6}
			<li class="{if $catid && in_array($catid, $t.catids)}active{/if}"><a href="{$t.url}">{$t.name}</a></li>
			{/list}
		</ul>
		<div class="tt">
			联系我们
		</div>
		<div class="left-contact">
			<img src="styles/images/p11.jpg" alt="" />
			<a href="tel:{dr_block(2)}" class="tel">{dr_block(2)}</a>
		</div>
	</div>
	<div class="right">
		<div class="qt">
			<div class="left">常见气体</div>
			<div class="right">
				<ul>
					{list action=linkage code=cjqt pid=0}
					<li class="{if $belong==$t.name}active{/if}"><a href="/index.php?c=category&id=6&belong={$t.name}">{$t.name}</a></li>
					{/list}
				</ul>
			</div>
		</div>
		
		<div class="qt">
			<div class="left">烟气、熏蒸气</div>
			<div class="right">
				<ul>
					{list action=linkage code=yq pid=0}
					<li class="{if $belong==$t.name}active{/if}"><a href="/index.php?c=category&id=6&belong={$t.name}">{$t.name}</a></li>
					{/list}
				</ul>
			</div>
		</div>
		<div class="qt">
			<div class="left">化物、剧毒气体</div>
			<div class="right">
				<ul>
					{list action=linkage code=hw pid=0}
					<li class="{if $belong==$t.name}active{/if}"><a href="/index.php?c=category&id=6&belong={$t.name}">{$t.name}</a></li>
					{/list}
				</ul>
			</div>
		</div>
		<div class="qt">
			<div class="left">【烷】类气体</div>
			<div class="right">
				<ul>
					{list action=linkage code=wl pid=0}
					<li class="{if $belong==$t.name}active{/if}"><a href="/index.php?c=category&id=6&belong={$t.name}">{$t.name}</a></li>
					{/list}
				</ul>
			</div>
		</div>
		
		<div class="pl-list">
		<ul>
			{if $keyword}
			{list action=search module=$dirname id=$searchid total=$sototal catid=$typeid order=$params.order page=1 pagesize=10 urlrule=$urlrule}
			<li>
				<a href="{$t.url}">
					<div class="img"><img src="{dr_get_file($t.pic[0]['file'])}" alt=""></div>
					<div class="txt">
						<h5>{$t.title}</h5>
						<div class="des">{$t.description}</div>
					</div>
				</a>
			</li>
			{/list}
			{else}
			{list action=module module=product catid=$typeid more=1 order=updatetime_desc pagesize=1 pagesize=6}
			<li>
				<a href="{$t.url}">
					<div class="img"><img src="{dr_get_file($t.pic[0]['file'])}" alt=""></div>
					<div class="txt">
						<h5>{$t.title}</h5>
						<div class="des">{$t.description}</div>
					</div>
				</a>
			</li>
			{/list}
			{/if}
		</ul>
		</div>
		<div class="page">
		{if !$pages && $nums==0} 
		{else if !$pages}
		<ul><li class="page-active"><a href="">1</a></li> </ul>
		{else}
		<ul>{$pages} </ul>
		{/if}
		</div>
	</div>
</div>

{template "footer.html", "/"}